home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
sec10.3
< prev
next >
Wrap
Text File
|
2007-02-28
|
451b
|
15 lines
0010 DIM NAME$(0:11) OF 3, SENTINEL$ OF 3
0020 FOR K:=1 TO 11 DO READ NAME$(K)
0030 FOR INSERT:=2 TO 11 DO
0040 SENTINEL$:=NAME$(INSERT)
0050 NAME$(0):=SENTINEL$
0060 TEST:=INSERT-1
0070 WHILE NAME$(TEST)>SENTINEL$ DO
0080 NAME$(TEST+1):=NAME$(TEST)
0090 TEST:=TEST-1
0100 ENDWHILE
0110 NAME$(TEST+1):=SENTINEL$
0120 ENDFOR INSERT
0130 FOR K:=1 TO 11 DO PRINT NAME$(K);" ";
0150 DATA "JIM","BEN","ZOE","PAT","VAL","KEN","RON","HAL","LEN","ALF","TOM"